package com.woniuxy.store.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.store.infra.model.StoreWallet;

import java.math.BigDecimal;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zz
 * @since 2023-07-20
 */
public interface StoreWalletService extends IService<StoreWallet> {

    StoreWallet getWallet(Integer storeId);

    void addBalance(Integer storeId, Integer storeWalletId, BigDecimal amount);

    void withdraw(Integer storeWalletId, Integer storeId, BigDecimal amount);
}
